AVEVA OMI Software Developer Kit



ArchestrA.Client.RuntimeData Namespace > DataSubscription Class > ReadOnceAsync Method : ReadOnceAsync(DataReferenceSource[],TimeSpan,CancellationToken) Method
The data reference source array
The timeout of the read operation. When the passed in timeout is equal to or less than TimeSpan.Zero, default 30 seconds will be applied.
The cancellation token used to cancel the read operation
ReadOnceAsync(DataReferenceSource[],TimeSpan,CancellationToken) Method
Read the runtime data once asynchronously with timeout and Cancellation token.
Syntax
'Declaration
 
Public Overloads MustOverride Function ReadOnceAsync( _
   ByVal dataReferenceSources() As DataReferenceSource, _
   ByVal timeout As TimeSpan, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of VTQ())
'Usage
 
Dim instance As DataSubscription
Dim dataReferenceSources() As DataReferenceSource
Dim timeout As TimeSpan
Dim cancellationToken As CancellationToken
Dim value As Task(Of VTQ())
 
value = instance.ReadOnceAsync(dataReferenceSources, timeout, cancellationToken)

Parameters

dataReferenceSources
The data reference source array
timeout
The timeout of the read operation. When the passed in timeout is equal to or less than TimeSpan.Zero, default 30 seconds will be applied.
cancellationToken
The cancellation token used to cancel the read operation

Return Value

The VTQ array of the references
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also